home *** CD-ROM | disk | FTP | other *** search
- ;This script was written to perform the workstation install of cc:mail.
- ;The install will occur where it finds the win.ini (either on the PC or
- ;on a networked installation of Windows.
- ;The script can be used as a template for network installations of any
- ;type of application. This script makes all the necesary changes to the
- ;autoexec.bat and the win.ini and it copies the necessary file to the
- ;user's windows.
- DEFINE "FREE" INTEGER
- DEFINE "SPACE" INTEGER
- ASSIGN SPACE [DISKSPACE]
- ASSIGN FREE 150
- IF SPACE >= FREE
- ;These lines determine if there is enough disk space on the workstation
- ;for the fileset. If there is not enough space the script will not run.
- ;Replace the minimum amount with the amount you need for the install in
- ;the "Assign free" line.
- MDIR [WINDIR] "CCMAIL"
- ;This line creates a directory called ccmail in the windows directory.
- DEFINE "WIN" STRING
- STRCOPY WIN [WINDIR]
- APPENDPATH WIN "CCMAIL"
- MDIR WIN "CC1DIR"
- ;These lines build the path to the new ccmail directory and create a
- ;directory called cc1dir in it.
- APPENDPATH WIN "CC1DIR"
- COPY "F:\FUSION\TEMP" "WMAIL.INI" WIN "WMAIL.INI"
- ;These lines create the necessary directories and they copy the appropriate
- ;files after the directories have been created. This can also be
- ;accomplished in the package by using the default path field and by
- ;including a fileset in the package. If you do use a fileset for distributing
- ;the file comment out the previous 2 lines of the script.
- SETSYSFILE [BOOT_ROOT] "AUTOEXEC.BAT"
- ADDPATH "PATH" "E:\ADMIN" NULL BEFORE
- ;This adds a path statement to the autoexec.bat.
- SETSYSFILE [WINDIR] "WIN.INI"
- WRITEINISTR "WIN.INI" "COMPATIBILITY" "CCMAIL" "0x0008"
- WRITEINISTR "WIN.INI" "CCMAIL" "USER1NAME" ""
- WRITEINISTR "WIN.INI" "CCMAIL" "USER1DIR" "C:\WINDOWS\CC1DIR"
- WRITEINISTR "WIN.INI" "CCMAIL" "LASTIDUSED" "1"
- WRITEINISTR "WIN.INI" "CCMAIL" "LASTUSERID" "1"
- WRITEINISTR "WIN.INI" "CCMAIL" "PROGRAMPATH" "E:\ADMIN"
- WRITEINISTR "WIN.INI" "CCMAIL" "USER0DIR" "WINDOWS\CCMAIL"
- WRITEINISTR "WIN.INI" "CCMAIL" "PROGVER" "200"
- WRITEINISTR "WIN.INI" "CCMAIL" "OPTIONS" "3925119"
- WRITEINISTR "WIN.INI" "CCMAIL" "CONFIRM" "63"
- WRITEINISTR "WIN.INI" "CCMAIL" "MESSAGE" "394404"
- WRITEINISTR "WIN.INI" "CCMAIL" "LIST" "16777472"
- WRITEINISTR "WIN.INI" "CCMAIL" "DEFATTR" "29"
- WRITEINISTR "WIN.INI" "CCMAIL" "TABSTOPS" "8"
- WRITEINISTR "WIN.INI" "CCMAIL" "LMARGIN" "0"
- WRITEINISTR "WIN.INI" "CCMAIL" "RMARGIN" "80"
- WRITEINISTR "WIN.INI" "CCMAIL" "PATH" "E:\CCMAIL"
- WRITEINISTR "WIN.INI" "MAIL" "SMI" "1"
- WRITEINISTR "WIN.INI" "LOTUS MAIL" "APPLICATION" "WMAIL"
- WRITEINISTR "WIN.INI" "LOTUS MAIL" "PROGRAM" "E:\Admin\WMAIL.exe sendmail"
- ;These lines add lines to the win.ini
- ADDGROUP "cc:MAIL"
- ADDITEM "cc:MAIL" "cc:MAIL" "E:\ADMIN\WMAIL.EXE"
- ;These lines add a group and a program item to the users' windows install.
- ;The group and item will be added the next time the user runs Windows.
- ELSE
- EXIT 1
- ;The script does not run if there is not enough room to copy the file.
- ENDIF
-
-